package com.lecture.java8.geekbang.demo03.reconfiguration;

import java.awt.*;

/**
 * 私有云实现图片上传下载
 * @author 72879
 */
public class PrivateImageStore implements ImageStore {
    @Override
    public String uploadImage(String bucketName, Image image) {
        createBucketIfNotExisting(bucketName);
        //上传图片到私有云
        //返回图片地址
        return null;
    }

    @Override
    public Image download(String url) {
        //从私有云下载图片
        return null;
    }

    private void createBucketIfNotExisting(String bucketName) {
        //创建bucket逻辑
    }
}
